How to add rigidbody as a variable

77

How to add rigidbody as a variable -

public Rigidbody rigid;

void Start() {
  rigid = GetComponent<Rigidbody> ();
}

Comments

Submit
0 Comments